<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCMediaDeviceVideoCanvas Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCMediaDeviceVideoCanvas Class Reference<div class="ingroups"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html">设备模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af43903851da0502306eafab2d92818de"><td class="memItemLeft" align="right" valign="top">SurfaceView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html#af43903851da0502306eafab2d92818de">getVideoView</a> ()</td></tr>
<tr class="separator:af43903851da0502306eafab2d92818de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4448dda12457162135505aab9640c9e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html#a4448dda12457162135505aab9640c9e7">pause</a> ()</td></tr>
<tr class="separator:a4448dda12457162135505aab9640c9e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b2562696ed7e0ad5513e75f643f70f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html#a9b2562696ed7e0ad5513e75f643f70f0">resume</a> ()</td></tr>
<tr class="separator:a9b2562696ed7e0ad5513e75f643f70f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52a7d73bc8faf2deaee4b157f969cb85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html#a52a7d73bc8faf2deaee4b157f969cb85">rotate</a> (int angle)</td></tr>
<tr class="separator:a52a7d73bc8faf2deaee4b157f969cb85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d9e3010c5a315f4be0e892d2a098986"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html#a3d9e3010c5a315f4be0e892d2a098986">snapshot</a> (int width, int height, String filePath)</td></tr>
<tr class="separator:a3d9e3010c5a315f4be0e892d2a098986"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addb47360879e0d8dc74c3eb5498a12c3"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_device_video_canvas.html#addb47360879e0d8dc74c3eb5498a12c3">getVideoSource</a> ()</td></tr>
<tr class="separator:addb47360879e0d8dc74c3eb5498a12c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad7148a9a0c7788c6d5d27951e8e6caa0"><td class="memItemLeft" align="right" valign="top"><a id="ad7148a9a0c7788c6d5d27951e8e6caa0"></a>
Object&#160;</td><td class="memItemRight" valign="bottom"><b>customData</b></td></tr>
<tr class="separator:ad7148a9a0c7788c6d5d27951e8e6caa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>视频对象 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="af43903851da0502306eafab2d92818de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af43903851da0502306eafab2d92818de">&#9670;&nbsp;</a></span>getVideoView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SurfaceView com.juphoon.cloud.JCMediaDeviceVideoCanvas.getVideoView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取视频渲染视图</p>
<dl class="section return"><dt>Returns</dt><dd>视频渲染视图 SurfaceView 对象 </dd></dl>

</div>
</div>
<a id="a4448dda12457162135505aab9640c9e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4448dda12457162135505aab9640c9e7">&#9670;&nbsp;</a></span>pause()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCMediaDeviceVideoCanvas.pause </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>暂停视频渲染 </p>

</div>
</div>
<a id="a9b2562696ed7e0ad5513e75f643f70f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b2562696ed7e0ad5513e75f643f70f0">&#9670;&nbsp;</a></span>resume()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCMediaDeviceVideoCanvas.resume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>恢复视频渲染 </p>

</div>
</div>
<a id="a52a7d73bc8faf2deaee4b157f969cb85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52a7d73bc8faf2deaee4b157f969cb85">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCMediaDeviceVideoCanvas.rotate </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>angle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>旋转角度，必须是90的倍数，该角度表示与屏幕正方向旋转后的夹角</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>角度值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3d9e3010c5a315f4be0e892d2a098986"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d9e3010c5a315f4be0e892d2a098986">&#9670;&nbsp;</a></span>snapshot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.juphoon.cloud.JCMediaDeviceVideoCanvas.snapshot </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>filePath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>视频通话截图</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>截屏宽度像素，-1为视频源像素 </td></tr>
    <tr><td class="paramname">height</td><td>截屏高度像素，-1为视频源像素 </td></tr>
    <tr><td class="paramname">filePath</td><td><b>文件路径，需精确到文件名及格式，例如：/sdcard/emulated/0/picture.png。请确保目录存在且可写。</b> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="addb47360879e0d8dc74c3eb5498a12c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addb47360879e0d8dc74c3eb5498a12c3">&#9670;&nbsp;</a></span>getVideoSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCMediaDeviceVideoCanvas.getVideoSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回渲染源标识</p>
<dl class="section return"><dt>Returns</dt><dd>渲染源标识 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cloud/src/main/common/com/juphoon/cloud/JCMediaDeviceVideoCanvas.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
